package com.foodsafe.model;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Addivieinfo entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "addivieinfo", catalog = "foodsafe")
public class Addivieinfo implements java.io.Serializable {

	// Fields

	private Integer addivieInfoId;

	private String addivieInfoTitle;
	private String addivieInfoAuthor;
	private String addivieInfoContent;
	private Date infoPublishTime;
	private Integer click;

	// Constructors

	/** default constructor */
	public Addivieinfo() {
	}

	/** full constructor */
	public Addivieinfo(Additive additives, String addivieInfoTitle,
			String addivieInfoContent, Date infoPublishTime) {
	
		this.addivieInfoTitle = addivieInfoTitle;
		this.addivieInfoContent = addivieInfoContent;
		this.infoPublishTime = infoPublishTime;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "AddivieInfoId", unique = true, nullable = false)
	public Integer getAddivieInfoId() {
		return this.addivieInfoId;
	}

	public void setAddivieInfoId(Integer addivieInfoId) {
		this.addivieInfoId = addivieInfoId;
	}

	@Column(name = "AddivieInfoTitle", length = 64)
	public String getAddivieInfoTitle() {
		return this.addivieInfoTitle;
	}

	public void setAddivieInfoTitle(String addivieInfoTitle) {
		this.addivieInfoTitle = addivieInfoTitle;
	}

	@Column(name = "AddivieInfoContent", length = 65535)
	public String getAddivieInfoContent() {
		return this.addivieInfoContent;
	}

	public void setAddivieInfoContent(String addivieInfoContent) {
		this.addivieInfoContent = addivieInfoContent;
	}

	@Column(name = "InfoPublishTime", length = 0)
	public Date getInfoPublishTime() {
		return this.infoPublishTime;
	}

	public void setInfoPublishTime(Date infoPublishTime) {
		this.infoPublishTime = infoPublishTime;
	}

	@Column(name = "Click")
	public Integer getClick() {
		return click;
	}

	public void setClick(Integer click) {
		this.click = click;
	}

	@Column(name = "AddivieInfoAuthor")
	public String getAddivieInfoAuthor() {
		return addivieInfoAuthor;
	}

	public void setAddivieInfoAuthor(String addivieInfoAuthor) {
		this.addivieInfoAuthor = addivieInfoAuthor;
	}

}